[IA64] compilation fix when crash_debug=y.
authorawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Wed, 1 Nov 2006 05:25:17 +0000 (22:25 -0700)
committerawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Wed, 1 Nov 2006 05:25:17 +0000 (22:25 -0700)
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
xen/include/asm-ia64/linux-xen/asm/atomic.h

index 874a6f890e75c14fc2677c1b29252ef60b662234..f306ecd5b9eb6d805ed4f23d49fa123a44074124 100644 (file)
 typedef struct { volatile __s32 counter; } atomic_t;
 typedef struct { volatile __s64 counter; } atomic64_t;
 
+#ifndef XEN
 #define ATOMIC_INIT(i)         ((atomic_t) { (i) })
 #define ATOMIC64_INIT(i)       ((atomic64_t) { (i) })
+#else
+#define ATOMIC_INIT(i)         { (i) }
+#define ATOMIC64_INIT(i)       { (i) }
+#endif
 
 #define atomic_read(v)         ((v)->counter)
 #define atomic64_read(v)       ((v)->counter)